SPARTA (7 Jul 2014)
# advect particles via free molecular flow on a uniform grid
# particles reflect off global box boundaries

variable            x index 10
variable            y index 10
variable            z index 10

variable            lx equal $x*1.0e-5
variable            lx equal 10*1.0e-5
variable            ly equal $y*1.0e-5
variable            ly equal 10*1.0e-5
variable            lz equal $z*1.0e-5
variable            lz equal 10*1.0e-5

variable            n equal 10*$x*$y*$z
variable            n equal 10*10*$y*$z
variable            n equal 10*10*10*$z
variable            n equal 10*10*10*10

seed	    	    12345
dimension   	    3
global              gridcut 1.0e-5

boundary	    rr rr rr

create_box  	    0 ${lx} 0 ${ly} 0 ${lz}
create_box  	    0 0.0001 0 ${ly} 0 ${lz}
create_box  	    0 0.0001 0 0.0001 0 ${lz}
create_box  	    0 0.0001 0 0.0001 0 0.0001
Created orthogonal box = (0 0 0) to (0.0001 0.0001 0.0001)
create_grid 	    $x $y $z
create_grid 	    10 $y $z
create_grid 	    10 10 $z
create_grid 	    10 10 10
Created 1000 child grid cells
  parent cells = 1
  CPU time = 0.000815868 secs
  create/ghost percent = 96.4641 3.53594

balance_grid        rcb part
Balance grid migrated 0 cells
  CPU time = 0.00120401 secs
  reassign/sort/migrate/ghost percent = 11.0495 0.237624 1.66337 87.0495

species		    ar.species Ar
mixture		    air Ar vstream 0.0 0.0 0.0 temp 273.15

global              nrho 7.07043E22
global              fnum 7.07043E6

create_particles    air n $n
create_particles    air n 10000
Created 10000 particles
  CPU time = 0.0019002 secs

stats		    10
compute             temp temp
stats_style	    step cpu np nattempt ncoll c_temp

# equilibrate with large timestep to unsort particles
# then benchmark with normal timestep

timestep 	    7.00E-8
run                 30
Memory usage per proc in Mbytes:
  particles (ave,min,max) = 1.02997 1.02997 1.02997
  grid      (ave,min,max) = 1.83113 1.83113 1.83113
  surf      (ave,min,max) = 0 0 0
  total     (ave,min,max) = 2.8611 2.8611 2.8611
Step CPU Np Natt Ncoll temp 
       0            0    10000        0        0    270.15745 
      10  0.016338825    10000        0        0    270.15745 
      20  0.033324957    10000        0        0    270.15745 
      30  0.049872875    10000        0        0    270.15745 
Loop time of 0.04988 on 1 procs for 30 steps with 10000 particles

Particle moves    = 300000 (0.3M)
Cells touched     = 1375873 (1.38M)
Particle comms    = 0 (0K)
Boundary collides = 119550 (0.12M)
Boundary exits    = 0 (0K)
SurfColl checks   = 0 (0K)
SurfColl occurs   = 0 (0K)
Collide attempts  = 0 (0K)
Collide occurs    = 0 (0K)
Particles stuck   = 0

Particle-moves/CPUsec/proc: 6.01443e+06
Particle-moves/step: 10000
Cell-touches/particle/step: 4.58624
Particle comm iterations/step: 1
Particle fraction communicated: 0
Particle fraction colliding with boundary: 0.3985
Particle fraction exiting boundary: 0
Surface-checks/particle/step: 0
Surface-collisions/particle/step: 0
Collision-attempts/particle/step: 0
Collisions/particle/step: 0

Move  time (%) = 0.0497036 (99.6463)
Coll  time (%) = 0 (0)
Sort  time (%) = 0 (0)
Comm  time (%) = 1.3113e-05 (0.0262891)
Outpt time (%) = 0.000156164 (0.31308)
Other time (%) = 7.15256e-06 (0.0143395)

Particles: 10000 ave 10000 max 10000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Cells:      1000 ave 1000 max 1000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
GhostCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
EmptyCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
timestep 	    7.00E-9
run 		    100
Memory usage per proc in Mbytes:
  particles (ave,min,max) = 1.02997 1.02997 1.02997
  grid      (ave,min,max) = 1.83113 1.83113 1.83113
  surf      (ave,min,max) = 0 0 0
  total     (ave,min,max) = 2.8611 2.8611 2.8611
Step CPU Np Natt Ncoll temp 
      30            0    10000        0        0    270.15745 
      40 0.0025849342    10000        0        0    270.15745 
      50 0.0051670074    10000        0        0    270.15745 
      60 0.0077369213    10000        0        0    270.15745 
      70  0.010316849    10000        0        0    270.15745 
      80  0.012893915    10000        0        0    270.15745 
      90  0.015473843    10000        0        0    270.15745 
     100  0.018046856    10000        0        0    270.15745 
     110  0.020635843    10000        0        0    270.15745 
     120  0.023223877    10000        0        0    270.15745 
     130   0.02580595    10000        0        0    270.15745 
Loop time of 0.0258129 on 1 procs for 100 steps with 10000 particles

Particle moves    = 1000000 (1M)
Cells touched     = 1358648 (1.36M)
Particle comms    = 0 (0K)
Boundary collides = 39892 (39.9K)
Boundary exits    = 0 (0K)
SurfColl checks   = 0 (0K)
SurfColl occurs   = 0 (0K)
Collide attempts  = 0 (0K)
Collide occurs    = 0 (0K)
Particles stuck   = 0

Particle-moves/CPUsec/proc: 3.87404e+07
Particle-moves/step: 10000
Cell-touches/particle/step: 1.35865
Particle comm iterations/step: 1
Particle fraction communicated: 0
Particle fraction colliding with boundary: 0.039892
Particle fraction exiting boundary: 0
Surface-checks/particle/step: 0
Surface-collisions/particle/step: 0
Collision-attempts/particle/step: 0
Collisions/particle/step: 0

Move  time (%) = 0.0252945 (97.992)
Coll  time (%) = 0 (0)
Sort  time (%) = 0 (0)
Comm  time (%) = 2.24113e-05 (0.0868224)
Outpt time (%) = 0.000481129 (1.86391)
Other time (%) = 1.4782e-05 (0.0572658)

Particles: 10000 ave 10000 max 10000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Cells:      1000 ave 1000 max 1000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
GhostCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
EmptyCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
